package com.yugao.fintech.vctgone.oss.config;

import com.yugao.fintech.vctgone.oss.handler.MinioHandler;
import lombok.RequiredArgsConstructor;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(MinioProperties.class)
@RequiredArgsConstructor
public class MinioAutoConfiguration {
    @Bean
    public MinioHandler minioHandler(MinioProperties minioProperties){
        return new MinioHandler(minioProperties);
    }
}
